package com.lanchetech.dao;

import com.lanchetech.bean.request.TagCategoryPageReq;
import com.lanchetech.entity.TagCategory;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface TagCategoryMapper {
    int deleteByPrimaryKey(Long id);

    int insert(TagCategory record);

    int insertSelective(TagCategory record);

    TagCategory selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(TagCategory record);

    int updateByPrimaryKey(TagCategory record);

    List<TagCategory> findAllByLevel(@Param("level") Integer level);

    List<TagCategory> findAllByPid(@Param("pid") Long pid);

    int updateHotsbyid(@Param("updatedHots") Integer updatedHots, @Param("id") Long id);

    List<TagCategory> findAllPage(TagCategoryPageReq req);

    int updateDeletedById(@Param("updatedDeleted") Byte updatedDeleted, @Param("id") Long id);

    List<TagCategory> findAll();

    List<TagCategory> findAllList(TagCategory req);

    List<TagCategory> findAllByIds(@Param("list") List<Long> list);
}